#include <cmath>
#include <iostream>
#include"Logger.h"

int main() {
    try {
        Logger logger("log.txt");
        logger.log(LogLevel::DEBUG, "application start...");
        std::string word = "word";
        int age = 18;
        double money = 18.7;
        logger.log(LogLevel::INFO, "{} years old", age);
        logger.log(LogLevel::WARN, "i have much money {}", money);
        logger.log(LogLevel::ERROR, "this is my {} ,do you ", word);
        logger.log(LogLevel::DEBUG, "my age is {}, money have {}, is my {}, do", age, money, word);
        logger.log(LogLevel::DEBUG, "{} {} {} {} {}", age);
        logger.log(LogLevel::DEBUG, "{} ", age, money, word);
        logger.log(LogLevel::DEBUG, "application end...");
    } catch (const std::exception &ex) {
        std::cout << "log error: " << ex.what() << std::endl;
    }


    return 0;
}